package admin

import database "hft/Database"

type AboutUsCategory struct {
	database.Base
	Name            string           `json:"name" gorm:"comment:大类;uniqueIndex"`
	SmallCategories []*SmallCategory `json:"smallCategories" gorm:"foreignKey:Category;references:ID;OnDelete:CASCADE,OnUpdate:CASCADE"`
}

func (AboutUsCategory) TableName() string {
	return database.TableNameFormat("about_category")
}
